<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            font-family: cursive;
        }
        table{
            border-collapse: collapse;
        }
        td{
            border: 1px solid black;
            padding: 5px 10px;
        }
    </style>
</head>
<body>
<script>
    /*var p=prompt("请输入金字塔的层数：");
    for(var i=0; i<p ; i++){
        var unm=p - i;
        for(var j=0;j<unm;j++){
            document.write("&nbsp;");
        }
        var m=(i+1)*2-1;
        for(var n=0;n<m;n++){
            document.write("*");
        }
        document.write("<br>");
    }*/
    /*for(var i=0;i<3;i++){
        console.log(i);
        console.log(123);
        for (var d=0;d<3;d++){
            console.log(123);
            for(var y=0;y<3;y++){
                console.log(y);
            }
            for(var t=0;t<3;t++){
                console.log(t)
            }
        }
    }*/

document.write("<table>");
    for(var l=1;l<10;l++){
        document.write("<tr>");
        for (var i=1;i<=l;i++){
            document.write("<td>");
            document.write(i+"*"+l+"= "+ i * l);
            document.write("</td>")
        }
        document.write("</tr>")
    }
document.write("</table>");
</script>
</body>
</html>